SelectFolderDialog Class

Used to create and present customized Select Folder dialog boxes. The non-customized version of this function is provided by the SelectFolder function.

Events

None

Properties

None

Methods

None

More information available in parent classes: FolderItemDialog:Object


Notes

Using the properties of the FolderItemDialog class, you can customize the following aspects of a select-folder dialog box:

Position (Left and Top properties)

Default directory (Initial Directory property)

Valid file types to show (Filter property)

Text of Validate and Cancel buttons (ActionButtonCaption and CancelButtonCaption properties).

Text that appears in the Title bar of the dialog (Title property)

Text that appears in the body of the dialog (PromptText property)


Example

The following example opens a select folder dialog box and presents the contents of the "Documents" directory on the user's startup volume in the browser:

Dim dlg as New SelectFolderDialog
Dim f as FolderItem
dlg.ActionButtonCaption="Select"
dlg.Title="Title Property"
dlg.PromptText="Prompt Text"
dlg.InitialDirectory= Volume(0).Child("Documents")
f=dlg.ShowModal()
if f <> Nil then
 //use the folderitem here
else
 //user cancelled
end if

See Also

FileType, FolderItem, FolderItemDialog, OpenDialog, SaveAsDialog, classes; SelectFolder function.